<?php
/**
 * Created by PhpStorm.
 * User: lullabies
 * Date: 2019/5/22
 * Time: 11:12
 */

namespace app\api\model;


use think\Model;

class TotalGrade extends Model
{
    //隐藏相关字段
    protected $hidden = ['update_time','create_time'];
    //设置数据表
    protected  $table = 'art_total_grade';
    /**
     * 设置与用户的一对一关联
     */
    public function user(){
        return $this->hasOne('user','id','user_id');
    }
}